-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move version map register to begin block #44
Conversation
Why does the replacement required? It's weird to me that setting version map is required at every new block. Which is different from https://github.com/cosmos/cosmos-sdk/blob/5213bbd65326edb9cd84f70c1bc0232b7389a4f7/simapp/app.go#L580 IMO, There should be better solution if it's due to some problem. |
I agree with @inon-man. This doesnt seem right. I think we should all get together and talk about the upgrade handlers before we get to fare ahead of ourselves on the subject. :) |
after Edward shows me that InitChain() will not be reached if we continue the chain and not from block zero. I kinda suspect whether continuing from 1.0.4 to 1.0.5 will reach InitChainer(). If so, the version map registration will never be reached if it is in InitChainer() Also from Tendermint here, https://github.com/tendermint/tendermint/blob/main/consensus/replay.go#L303, RequestInitChain only happens if appBlockHeight == 0. abci.RequestInitChain{} request will invoke InitChainer(). For appBlockHeight > 0, abci.RequestInitChain{} request will not be sent. |
@nghuyenthevinh2000 I see. It seems that we only need to do it once in the hotfix. |
Codecov Report
@@ Coverage Diff @@
## v1.0.5-upgrade #44 +/- ##
=================================================
Coverage ? 64.28%
=================================================
Files ? 100
Lines ? 4645
Branches ? 0
=================================================
Hits ? 2986
Misses ? 1444
Partials ? 215 |
per @ZaradarBH suggest, we should check if Upgrade handler's version map is empty in mainnet:
|
I will check len(vm) == 0 on my node by logging it. |
I spinned up full node (v1.0.4) with pruned columbus-5 data and it has empty version map.
|
added block height guards, to trigger Feb 14th |
Summary of changes
Move version map to BeginBlocker
Report of required housekeeping
(FOR ADMIN) Before merging